Skip to content

tighten: no .blocked.yml; --check and diff --flows answer what it did - #16

Merged
ppietikainen merged 1 commit into
mainfrom
tighten-no-blocked
Nov 20, 2026
Merged

ppietikainen merged 1 commit into
mainfrom
tighten-no-blocked

Conversation

@ppietikainen

Copy link
Copy Markdown
Member

.blocked.yml listed the observed flows a proposal would deny. Nothing read it, and the workflow already answers both kinds it held:

  • A port no term covers, or a source a term already leaves out. Tightening adds and removes no terms, so this is the same before and after, and tighten --check reads it off the policy: the check before a deploy, against the latest traffic. In examples/fleet-zones both entries are exactly what --check reports.
  • A narrowing that cuts observed traffic. diff --flows marks it CONTRADICTED with the flows it would cut, and -o sh writes it as a comment.

--check and --dry-run still list would-be-blocked flows. With no side files left, merge-zones, flow-verdict and LSPR24's block_early.py stop skipping .blocked.yml, .dead.yml and .groups.yml. docs/fleet.md now describes the check before a deploy, which no doc mentioned. Examples: LSPR24's 27 files go, and the fleet-zones transcript loses two lines.

The check before a deploy, worked on LSPR24. make check-live writes reports/check/: each of the five hourly hosts' night-trained policies (r2-tightened) checked against the first live hour of d2. It shows what a diff of two policies cannot, traffic to ports no term covers. dc1 would refuse 1,216 flows from 21 sources: dynamic RPC from the other DC and 14 domain hosts, the organisers' Kerberos and LDAP from the DMZ, and the unexplained tcp/134. The README gets a table of all five.

LSPR24 make clean all on this branch reproduces the committed outputs, make check-live is deterministic, and examples/check.sh and the tests pass.

🤖 Generated with Claude Code

The .blocked.yml beside a tightened policy listed the observed flows the
proposal would deny. Nothing read it, and both kinds it held are answered
by commands already in the workflow:

- Traffic to a port no term covers, or from a source a term already
  leaves out. Tightening adds and removes no terms, so this is the same
  for the policy and for the proposal, and `tighten --check` reads it off
  the policy: the check before a deploy, against the latest traffic. In
  examples/fleet-zones both entries (jump1 to RDP on dc1 and files1)
  are exactly what --check reports.
- A narrowing that cuts traffic the flows show. `diff --flows` marks it
  CONTRADICTED with the flows it would cut, and `-o sh` writes it as a
  comment no grep can run; a hand-narrowed term was flagged so.

tighten still computes would-be-blocked flows for --check and prints
them under --dry-run. With no side files left, merge-zones, flow-verdict
and the LSPR24 block_early.py stop skipping .blocked.yml, .dead.yml and
.groups.yml. docs/fleet.md describes the check before a deploy, which no
doc mentioned. examples: the 27 LSPR24 .blocked.yml go, and the
fleet-zones transcript loses its two lines.

LSPR24 gets the check before a deploy as a worked example: make
check-live writes reports/check/, each hourly host's night-trained
policy checked against the first live hour of d2. dc1 would refuse
1,216 flows from 21 sources, among them dynamic RPC from 15 domain
hosts and the unexplained tcp/134.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ppietikainen
ppietikainen merged commit d4e163b into main Nov 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant